//
//  NSObject+Calculate.m
//  链式编程
//
//  Created by apple on 2017/9/4.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "NSObject+Calculate.h"
#import "CalJiSuan.h"
@implementation NSObject (Calculate)


+ (int)wt_reulst:(void (^)(CalJiSuan *))block{

    
    CalJiSuan *cal = [[CalJiSuan alloc] init];
    
    //调用block
    block(cal);
    
    //返回结果
    return cal.result;
}

@end
